package com.bank.config.service.impl;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import com.bank.config.service.EchoService;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(timeout = 5000,version = "1.0")
public class EchoServiceImpl implements EchoService {
    @NacosValue(value = "${echo.service.name:null}",autoRefreshed = true)
    private String serviceName;

    @Override
    public String echo(String msg) {
        return "msg: "+ msg+" serviceName:"+serviceName;
    }
}
